<template>
  <div class="Info">
    <div class="container">
      <div class="left">
        <div class="user">
          <div class="avatar">
            <img
              src="https://img0.baidu.com/it/u=3596962884,567815889&fm=253&fmt=auto&app=120&f=JPEG?w=492&h=500"
              alt=""
            />
          </div>
          <span>text1211</span>
        </div>
        <ul>
          <li>
            <router-link to="#">
              <i class="iconfont icon-yonghu"></i><span>我的信息</span>
            </router-link>
          </li>
          <li>
            <router-link to="#">
              <i class="iconfont icon-qianbao"></i><span>我的钱包</span>
            </router-link>
          </li>
          <li>
            <router-link to="#">
              <i class="iconfont icon-shoucang2"></i><span>我的收藏</span>
            </router-link>
          </li>
          <li>
            <router-link to="#">
              <i class="iconfont icon-shoucang2"></i><span>我的关注</span>
            </router-link>
          </li>
          <li>
            <router-link to="#">
              <i class="iconfont icon-pinglunxiao"></i><span>我的回复</span>
            </router-link>
          </li>
          <li>
            <router-link to="#">
              <i class="iconfont icon-notice"></i><span>领养通知</span>
            </router-link>
          </li>
          <li>
            <router-link to="#">
              <i class="iconfont icon-weibiaoti--"></i><span>修改密码</span>
            </router-link>
          </li>
          <li>
            <router-link to="#">
              <i class="iconfont icon-tuichu"></i><span>退出登录</span>
            </router-link>
          </li>
        </ul>
      </div>
      <div class="right">
        <router-view></router-view>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "myInfo",
};
</script>

<style lang="less" scoped>
.Info {
  width: 1200px;
  margin: 0 auto;
  .container {
    margin: 30px 0;
    display: flex;
    // box-shadow: 6px 8px 6px 1px rgba(0, 0, 0, 0.1);
    .left {
      flex-basis: 200px;
      background-color: #efefef;
      box-sizing: border-box;
      border-right: 2px solid #fafafa;
      border: 1px solid #cecece;
      .user {
        display: flex;
        flex-direction: column;
        align-items: center;
        border-bottom: 1px solid #ccc;
        padding-bottom: 30px;
        margin: 20px 30px;
        .avatar {
          width: 64px;
          height: 64px;
          border-radius: 50%;
          overflow: hidden;
          margin-top: 20px;
          margin-bottom: 10px;
          img {
            width: 100%;
          }
        }
        span {
          font-size: 20px;
          font-weight: bold;
          color: #333;
          text-align: center;
        }
      }
      ul {
        padding-bottom: 20px;
        box-sizing: border-box;
        li {
          line-height: 40px;
          a {
            box-sizing: border-box;
            padding-left: 30px;
            color: #333;
            text-decoration: none;
            width: 100%;
            display: block;
            &:hover {
              background-color: #e1e4ea;
            }
            i {
              margin-left: 16px;
              font-size: 18px;
              vertical-align: -1px;
              width: 30px;
              display: inline-block;
              color: #666;
            }
            span {
              font-size: 16px;
            }
          }
        }
      }
    }
    .right {
      flex: 1;
      border: 1px solid #cecece;
      border-left: none;
    }
  }
}
</style>